home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / networking / anos / install_dis.lha / AmigaDIS / NOS_Docs / Modem.txt < prev    next >
Encoding:
Text File  |  1993-12-23  |  20.1 KB  |  430 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6. DEMON INTERNET LTD.
  7. ===================
  8. 42 Hendon Lane
  9. Finchley
  10. London
  11. N3 1TT
  12. 081-349 0063  (London)
  13. 031-552 0344  (Scotland)
  14. email internet@demon.net
  15.  
  16. MODEM.TXT - HINTS ON CONFIGURING A MODEM FOR CONNECTING TO THE INTERNET
  17. Last updated 22nd December 1993
  18.  
  19. The latest version of this document is available from
  20. ftp.demon.co.uk:/pub/doc/Modem.txt
  21.  
  22. This document will point out some general essentials and advice on
  23. setting up your modem.  A section at the end discusses specifics
  24. regarding a DOS setup running the KA9Q NET.EXE program.  Due to the vast
  25. combinations of computer and modem setups it is impossible to give
  26. specific help for all types.
  27.  
  28. I have tried to use plain English but also to introduce the computer
  29. buzzwords on the grounds that if you get help from a computer support
  30. person they will find it impossible not to slip into the jargon.
  31.  
  32. Making an Internet (IP - Internet Protocol) connection via a modem is
  33. very different from a standard dial-up connection.  Do not assume that
  34. just because you can download from a BBS (and maybe upload) that you have
  35. your communication (comms) set-up 100% sorted out.  Due to the nature of
  36. IP, if you get errors, throughput can be hit very badly.  Under IP
  37. information is sent in packets and for maximum speed these should
  38. generally be as large as possible up to a maximum of about 1500
  39. characters.  If a packet gets messed up (garbled) its entire contents
  40. will have to be resent - hence a large speed degradation may occur.
  41.  
  42. One exception to this is when an interactive sessions are sharing a
  43. TCP/IP link with more voluminous transfers such as NNTP or SMTP.  In this
  44. case it can be preferable to have smaller transmission units (Maximum
  45. Transmission Units setting or MTU) so that keystrokes/screen updates will
  46. fit into the data stream with less delay.  If a large MTU is used this
  47. can lead to what feels like a jerky or intermittent session.
  48.  
  49.  
  50. Essentials
  51. ==========
  52.           Correct modem settings: full hardware handshake, flow control,
  53.           XON/XOFF set to off, settings must be bi-directional where
  54.           appropriate.
  55.           
  56.           A full specification modem cable (open yours up - if it has
  57.           only 3 wires it is no good).
  58.           
  59.           A serial chip that can cope with the high speeds (if using a
  60.           high speed modem).  Extended memory drivers and Terminate Stay
  61.           Residents (TSRs) etc. can interfere with the handling of
  62.           interrupts from serial chips.
  63.           
  64.           
  65. Telephone Exchange
  66. ==================
  67.           
  68.           The Demon Internet Service (DIS) is on a modern digital
  69.           exchange so you should have little trouble with ringing tones
  70.           etc when connecting to us.  If you are on an older exchange,
  71.           your modem may not recognise the dialling tone.  If this
  72.           happens, look in your manual and change the setting that
  73.           overrides the dial tone recognition.
  74.           
  75.           Note that when you make changes to a modem's settings you
  76.           should always reset the modem first, make the change and then
  77.           save the settings.  You will need a comms or "terminal
  78.           emulation" package such as Telix, Procomm, Window's Terminal
  79.           etc.  Look in your modem manual for instructions.  Mostly you
  80.           will be able to type ATZ <return> to reset your modem.  On a US
  81.           Robotics/Miracom modem you could type:
  82.           
  83.           ATZ            Reset the modem
  84.           ATX3           Alter the settings
  85.           AT&W           Write the settings to Non-Volatile RAM (NVRAM)
  86.           
  87.           If going through a private telephone network (or PABX) first,
  88.           you will probably need to dial a number such as 9 to get an
  89.           outside line.  Make sure your dial string has this in.  You may
  90.           need to separate this from the number to dial by a separator
  91.           such as a comma so that there is a pause to give your telephone
  92.           system time to give you an outside line:
  93.           
  94.           9,0813434848
  95.  
  96.  
  97. Internal Modems
  98. ===============
  99.  
  100.           Internal modems have the advantage of not having a serial lead
  101.           to worry about but the disadvantage of using an extra interrupt
  102.           and generally don't have any lights to let you know what is
  103.           going on.  Ensure that the interrupt on which the modem sits
  104.           does not interfere with any others - refer to the setup program
  105.           for your computer and your modem manual.  This may require
  106.           altering a jumper (a small connector) on the main computer
  107.           board (mother board) on your computer or on a separate board.
  108.           This should be well documented and is well within the scope of
  109.           the average user.  Ensure that the modem is seated correctly in
  110.           the expansion slot.
  111.           
  112.           
  113.  
  114. Which Phone Number
  115. ==================
  116.           
  117.           We have London, Warrington and Edinburgh as Point of Presence.
  118.           Thus you will have a choice of three numbers to ring.  Our
  119.           suggestions depending on your locality are:
  120.           
  121.           Local to London     Only dial London         081 343 4848
  122.           Local to Warrington Only dial Warrington     0925 411383
  123.           Local to Edinburgh  Only dial Edinburgh      031 552 8883
  124.           Long distance to all                         Choose any.
  125.                               Edinburgh and London are city to city phone
  126.                               calls and may be cheaper than dialling
  127.                               Warrington for some people.
  128.           
  129.           By following the above you will maximise your connect rate
  130.           during periods of heavy line usage.
  131.           
  132.           
  133. Modem and Telephone leads
  134. =========================
  135.  
  136.           Your modem lead should be in good condition and preferably not
  137.           wrapped in a tight circle or running parallel to high power
  138.           cables etc.  This will normally only affect longer runs and, as
  139.           your cable should be earthed, will not often be a problem.  The
  140.           cable should be connected securely at both ends as should the
  141.           telephone cable.  If you suspect your telephone socket may be
  142.           causing a problem then test it with a standard plug in
  143.           telephone.  Use the correct type of modem lead - they vary from
  144.           country to country.
  145.           
  146.           
  147. Serial Chips
  148. ============
  149.           
  150.           The type of serial chip (Universal Asynchronous
  151.           Receiver/Transmitter - UART) in use can make a big difference
  152.           to comms performance/reliability.  At higher speed the computer
  153.           can sometimes not service the serial chip fast enough to catch
  154.           all of the characters arriving down the line.  This problem
  155.           increases if running under a multi-tasker such as Windows,
  156.           certain memory managers and other TSRs.
  157.  
  158.  
  159. Speed
  160. =====
  161.  
  162.           Close to every modem user's heart is the speed at which they
  163.           can operate.  There are two different speeds: the first is the
  164.           speed at which a modem can talk to another modem; the second is
  165.           the speed at which the modem can talk to its controlling
  166.           computer (the DTE rate).
  167.           
  168.           Firstly, we will discuss the connect rate.  A V.22bis modem can
  169.           connect at a speed of 2,400 bits per second.  There are 8 bits
  170.           in a byte (a byte is usually one character) so that is a
  171.           maximum of 300 characters per second (cps).  Due to start and
  172.           stop bits, each byte will take 10 bits reducing the speed to
  173.           240 characters per second.  When running over IP there is a
  174.           slight overhead and so you will never see this maximum.
  175.           However, as you can (and will) have several things happening at
  176.           once, you will be able to make very good use of your available
  177.           bandwidth.
  178.           
  179.           Many modems have compression protocols built in to them.  MNP/4
  180.           and V42 use synchronous connections to provide an error free
  181.           connection between modems, saving the start and stop bits.
  182.           This gives at least a 20% increase in throughput.  V42bis adds
  183.           compression, provided that the DTE rate is higher than the
  184.           connection rate.  This means that when downloading a plain text
  185.           (or ascii) file, it is possible to get faster speeds by
  186.           compressing the data.  The data is compressed so that the same
  187.           information can be encoded in to a smaller space.  The
  188.           receiving modem will of course unscramble the data for you.  If
  189.           news normally flows in at say 200 cps, then, on a 2400 cps
  190.           link, you have up to 44 cps left at the same time for mail,
  191.           telnet'ing, ftp'ing etc.  Compression techniques do not work as
  192.           effectively on binary files and make very little difference to
  193.           pre compressed files (such as .zip, .zoo, .lha etc.).
  194.           
  195.           Note that MNP5 will usually degrade througput on an IP link due
  196.           to the packet based nature of it's compression method. V42bis
  197.           does not suffer this problem as it is capable of optimising
  198.           itself dependent on the type of data being transferred.
  199.           
  200.           Now we will discuss the second speed - the speed at which the
  201.           modem and computer communicate with each other.  This is called
  202.           the Data Terminal Equipment (DTE) rate.  If you have a slow
  203.           modem, e.g. a 2400 baud one without MNP or V42, then it will
  204.           probably only work correctly when talked to by the computer at
  205.           the same speed.  For the facts on your particular modem and
  206.           computer you should refer to your manuals.  On faster modems
  207.           you will only be able to take advantage of some of the
  208.           compression features by making the computer talk to the modem
  209.           at a faster speed than modem is talking to the remote modem
  210.           down the telephone line.  Thus you should talk to a 9600 modem
  211.           at 19200 or even 38400.  You should check the maximum speed at
  212.           which the serial port on your modem can talk and then set your
  213.           communication package to work at the highest mutually available
  214.           speed.  Don't forget that without a buffered UART you are
  215.           unlikely to sustain reliable high speed comms above 9600 baud.
  216.           
  217.           Please note that we only support modems capable of V22bis
  218.           (2400) and upwards.  If you have a US Robotics/Miracom HST
  219.           modem, you may not get very good throughput in HST mode.  In
  220.           practice HST mode is fine if FTP'ing from a site without
  221.           anything else happening (sending mail etc.) as it works fine in
  222.           one direction at a time only.
  223.           
  224.  
  225. Trouble Shooting
  226. ================
  227.  
  228.           If you are getting garbled characters on the screen then
  229.           something is wrong!  Garbled characters are often a sign of
  230.           mismatched speeds, lack of handshaking or a non-locked DTE
  231.           rate.  If you get as far as the login prompt but no further
  232.           then make sure that your dialler script is working on 8 bit
  233.           standard comms: 8 bits, no parity, 1 stop bit.  Also, when you
  234.           get the login prompt, make sure that your dialler script pauses
  235.           for approximately a second before sending your nodename - this
  236.           is to allow our SCO Unix to be ready to accept your machine
  237.           name.  See DEMON.TXT for the full logon script details.
  238.           
  239.           Having checked your setup according to the information above,
  240.           try reducing the speed at which the computer talks to the modem
  241.           (if using a high speed modem) until the connection works.  If
  242.           you have to do this then either you are attempting to drive
  243.           your computer or your modem at too high a speed, or you have
  244.           other processes running which interfere with the correct
  245.           running of your serial communications (as per Serial Chips
  246.           above).
  247.           
  248.           There is a section below which specifically refers to PC users.
  249.           
  250.           
  251. Software and Other Factors
  252. ==========================
  253.  
  254.           By configuring your software correctly you can make significant
  255.           improvements to an under performing communications connection.
  256.           Things to check for include badly fragmented disks (run a disk
  257.           de-fragmenter such as Norton's Speed Disk), no disk cache, no
  258.           or insufficient buffering inside the software and unnecessary
  259.           checking protocols or indexing taking place.  Refer to your
  260.           software's instructions for details on these.
  261.           
  262.  
  263. IBM PC Compatibles running DOS
  264. ==============================
  265.  
  266.           In addition to the above info there is some specific advice
  267.           below for those of you running DOS.
  268.           
  269.           Some modems send back "OK" when sent ATZ (the reset command)
  270.           even though they are not ready.  This means that the dialer
  271.           program will try to ring out even though the modem is not
  272.           ready.  The effect is that you will see ATZ on the screen
  273.           followed by OK and then the program will not dial.  Eventually
  274.           it will time out.  To avoid this, send AT instead of ATZ in the
  275.           modem initialization string.
  276.           
  277.           Extended memory drivers can interfere with the correct
  278.           operation of your serial communications.  If you suspect this,
  279.           rename your CONFIG.SYS and AUTOEXEC.BAT files and then reboot
  280.           your computer to see if the connection improves.
  281.           
  282.           If you have a V.32bis 14,400 modem you will probably want to
  283.           talk to it at 38,400.  Unless you have a suitable serial chip
  284.           then you will get errors and, as explained at the start of this
  285.           document, this can seriously impact the throughput.  When
  286.           running NET.EXE you can type asystat at the net> prompt and
  287.           information about your serial comms will be printed to the
  288.           screen.  The interesting parameter is the third one on the
  289.           second line, 'hw over'.  This shows how many hardware overruns
  290.           (characters lost because they weren't fetched from the serial
  291.           chip in time) have occurred.  These overruns are usually due to
  292.           lack of either a buffered UART or hardware handshaking.
  293.           
  294.           As already stated, for maximum performance you will need to
  295.           have a buffered chip.  For this you will need a 16550A - this
  296.           is the number that is written on the chip.  The asystat command
  297.           will tell you if a 16550 is detected.  Unfortunately, even top
  298.           manufacturers overlook this area so it is quite likely that
  299.           your chip is below par.
  300.           
  301.           If in doubt, open up your computer and locate the serial chip.
  302.           If it is not a 16550 then it might need replacing.  If you are
  303.           handy with a soldering iron you could replace it, but this is
  304.           not advisable unless you are really confident.  If the chip is
  305.           socketed then it can be removed and a 16550 (costing about #16
  306.           - we sell them) be put in its place.  If not then you could buy
  307.           an extra serial card with a 16550 already on it costing from
  308.           around #30 to #70 depending on the specification.
  309.           
  310.           If you are using a standard serial port then the settings
  311.           offered for COM1, 2, 3 or 4 in the configuration program in
  312.           DIS.EXE will probably be fine.  Otherwise you should refer to
  313.           your manuals and enter the appropriate IRQ number and I/O base
  314.           address.
  315.           
  316.           If you install an extra serial card then be aware that if you
  317.           have, for example, a mouse on COM1 then you should not use COM3
  318.           for your modem using the default IRQ setting as they share the
  319.           same interrupt.
  320.           
  321.  
  322. Setting Up a US Robotics/Miracom Modem
  323. ======================================
  324.           
  325.           To set up your modem, use a standard communications package.
  326.           Type ATZ <RETURN> and see the response OK.  Then continue to
  327.           make the settings.  You can type ati4 <RETURN> and ati5 to see
  328.           what your current settings are.  For connecting to Demon we
  329.           recommend the following:
  330.           
  331.           B0     V.32bis modulation rather than HST
  332.           C1     Transmitter enabled
  333.           E1     Local echo ON
  334.           F1     Duplex OFF receiving system sends duplicate data
  335.           Q0     Result codes displayed
  336.           V1     Display result codes in verbal (not numerical) mode
  337.           &A3    Enable additional error control indicator
  338.           &B1    Serial port remains at fixed setting
  339.           &C1    Modem send CD (Carrier Detect) on connection
  340.           &D2    Terminal sends DTR (Data Terminal Ready)
  341.           &H1    Hardware CTS (Clear to Send) transmit data flow control
  342.           &I0    Received Data software flow control disabled
  343.           &K3    MNP 5 data compression disabled
  344.           &N0    Variable link speed negotiation
  345.           &R2    Received Data h/ware (RTS) flow controlled by computer
  346.           &S1    Data Set Ready (DSR) controlled by the computer
  347.           
  348.           e.g. type AT&K3 <RETURN>.  When done type AT&W <RETURN> to save
  349.           the settings to Non Volatile Ram (NVRAM) so that they are
  350.           remembered when the modem is reset.
  351.  
  352. Supra modems
  353. ============
  354.           
  355.           Supra 14.4k fax modems need the rom revision 1.70B (or later of
  356.           course).
  357.           
  358.           ACTIVE PROFILE:
  359.           B0 E1 L0 M1 N1 Q0 T V1 W0 X4 Y0 %C1 %E0 %G0 \N3 &C1 &D2 &K3 &Q5
  360.           &R0 &S0 &X0 &Y0
  361.           
  362.           S00:000 S01:000 S02:043 S03:013 S04:010 S05:008 S06:002 S07:050
  363.           S08:002 S09:006
  364.           S10:014 S11:095 S12:050 S18:000 S23:055 S25:005 S26:001 S36:007
  365.           S37:000 S38:020
  366.           S40:087 S46:138 S48:007 S95:000 S109:062 S110:001
  367.           
  368.           STORED PROFILE 0:
  369.           B0 E1 L0 M1 N1 Q0 T V1 W0 X4 Y0 %C1 %E0 %G0 \N3 &C1 &D2 &K3 &Q5
  370.           &R0 &S0 &X0
  371.           S00:000 S02:043 S06:002 S07:050 S08:002 S09:006 S10:014 S11:095
  372.           S12:050 S18:000
  373.           S23:063 S25:005 S26:001 S36:007 S37:000 S38:020 S40:087 S46:138
  374.           S48:007 S95:000
  375.           
  376.           STORED PROFILE 1:
  377.           B1 E1 L2 M0 N1 Q0 T V1 W1 X4 Y0 %C1 %E0 %G0 \N3 &C1 &D2 &K3 &Q5
  378.           &R0 &S0 &X0
  379.           S00:000 S02:043 S06:002 S07:050 S08:002 S09:006 S10:014 S11:095
  380.           S12:050 S18:000
  381.           S23:061 S25:005 S26:001 S36:007 S37:000 S38:020 S40:087 S46:138
  382.           S48:007 S95:000
  383.           
  384. Yoriko modems
  385. =============
  386.  
  387.           Yorikos work OK with a simple AT&F&C1&D2 set-up.
  388.  
  389.  
  390. Zoom modems
  391. ===========
  392.           
  393.           To force a Zoom modem to talk at only one speed:
  394.           AT&Q6S37=11M0X3&K4
  395.  
  396. Testing
  397. =======
  398.           
  399.           To test out your setup you could try using ping.  ping
  400.           gate.demon.co.uk whilst logged on directly to gate should
  401.           return a speed of about 270ms on a fast link down to 1000ms on
  402.           a slow link.
  403.           
  404.           Try using ftp to ftp.demon.co.uk and downloading files from
  405.           /pub/test.  There are files of varying contents that have also
  406.           been compressed in various ways.  "empty" files are there so
  407.           that you can test the maximum throughput on blank data.  "full"
  408.           files contain a thorough mix of characters and so little
  409.           compression by your modem will be possible. "regular" files are
  410.           a mixture - just like this document or a Usenet news message.
  411.           Each of these three have been compressed using popular methods
  412.           and so you can try working on the compressed files as well if
  413.           you like.  Try uploading these files to
  414.           ftp.demon.co.uk:/incoming to test the link in that direction as
  415.           well.
  416.           
  417.           Using a V.32bis modem, the maximum throughput you are likely to
  418.           get on a binary file is 1,600 cps.  On an ascii file the
  419.           maximum is about 2,800 cps.
  420.           
  421.           
  422. Finally
  423. =======
  424.           
  425.           Please try to sort out your setup by following the above
  426.           advice.  If you are still stuck then telephone the support line
  427.           on 081-349 0063 or 031-552 0344 during office hours to see if
  428.           further help can be offered.  Full support line details are
  429.           available in /pub/doc/Welcome.txt.
  430.